Conversation
|
I tried to build this PR with: ./configure --with-realtime=uspace --enable-build-documentation=none On the 5.4.279-rtai kernel with Debian Trixie I get the following error, any thoughts: I suspect that this is a consequence of the long and complex history of this particular VM. |
|
I should probably also create an issue for https://github.com/NTULINUX/RTAI This change will fix it: I mentioned it already here but there are many things going on: #3873 (comment) I think you will have the same issue on master and 2.9. |
|
andypugh@trixie:~/linuxcnc-dev/src$ halrun Works for me too, with the change. I am not clear if it would work for everyone if I change my rtai includes before building a package. |
|
You build your packages based on https://github.com/NTULINUX/RTAI? I am on it here: NTULINUX/RTAI#20 |
No, I typically take the current 2.9 head and merge in https://github.com/LinuxCNC/linuxcnc/tree/andypugh/2.9-rtai to enable RTAI package building. |
|
Ah sorry, i ment the package for rtai-modules-5.4.279 containing |
Based on this comment #3878 (comment), I track down the issue and fixed it.
It was introduced here:
233f381
git tag --contains 233f381
v2.10.0-pre0
v2.9.0
v2.9.0-pre1
v2.9.1
v2.9.2
v2.9.3
v2.9.4
v2.9.5
v2.9.6
v2.9.7
v2.9.8
That's why 2.9.0-pre0 in the picture was probably still working, however, I dont't have such an old VM to test this theory.
The issue is this check:
linuxcnc/src/rtapi/uspace_rtapi_app.cc
Line 900 in 233f381
It fails when the lowest prio is bigger than the highest:
#define RT_SCHED_HIGHEST_PRIORITY 0
#define RT_SCHED_LOWEST_PRIORITY 0x3fffFfff
The above commit introduced a fix returning the correct prio for LXRT and broke the check with that.
Tested with:
POSIX non-realtime
POSIX realtime
XENOMAI (posix-skin) realtime
LXRT realtime
Just tell me if branch 2.9 is wrong for this fix and I will rebase to master.